﻿<UserControl x:Class="Subattle.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="483" Height="483" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:Subattle="clr-namespace:Subattle" Loaded="UserControl_Loaded" KeyDown="Page_KeyDown" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
	<UserControl.Resources>
		<Storyboard x:Name="PulseSize" AutoReverse="True" RepeatBehavior="Forever">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" KeySpline="0,0,0.5,1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="1.1" KeySpline="0,0,0.5,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" KeySpline="0,0,0.5,1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="1.1" KeySpline="0,0,0.5,1"/>
			</DoubleAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)">
				<SplinePointKeyFrame KeyTime="00:00:00" Value="0.5,0.5" KeySpline="0,0,0.5,1"/>
				<SplinePointKeyFrame KeyTime="00:00:00.7000000" Value="0.497,0.261" KeySpline="0,0,0.5,1"/>
			</PointAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" KeySpline="0,0,0.5,1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="-0.227" KeySpline="0,0,0.5,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" KeySpline="0,0,0.5,1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="-4.64" KeySpline="0,0,0.5,1"/>
			</DoubleAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(TextBlock.Foreground).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
				<SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="#FFF5FF00"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(TextBlock.Foreground).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#FFFF0000"/>
				<SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="#FFFF0000"/>
			</ColorAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StatusText" Storyboard.TargetProperty="(TextBlock.Foreground).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.741"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<LinearGradientBrush x:Key="Brush1" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFF5FF00"/>
			<GradientStop Color="#FFFF0000" Offset="1"/>
		</LinearGradientBrush>
	</UserControl.Resources>
    <Canvas x:Name="LayoutRoot" MouseLeftButtonUp="Canvas_MouseLeftButtonUp">
        <Canvas.Background>
            <LinearGradientBrush StartPoint=".5,0" EndPoint=".5,1">
                <GradientStop Offset="0.991" Color="#FF3D3EFF"/>
                <GradientStop Offset="0.491" Color="#FF3996FE"/>
                <GradientStop Offset="0" Color="#FF10DAF0"/>
            </LinearGradientBrush>
        </Canvas.Background>
        <Ellipse Height="192" Width="192" Canvas.Left="90" Canvas.Top="177" x:Name="pingWave" Visibility="Collapsed" StrokeThickness="12" Stroke="White">
            <Ellipse.OpacityMask>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#00000000" Offset="0.45"/>
                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                </LinearGradientBrush>
            </Ellipse.OpacityMask>
        </Ellipse>
        <Subattle:Submarine Canvas.Left="100" Canvas.Top="100" x:Name="Enemy" Opacity="0" Visibility="Collapsed">
            <Subattle:Submarine.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="-1"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Subattle:Submarine.RenderTransform>
        </Subattle:Submarine>
        <Subattle:Submarine Canvas.Left="100" Canvas.Top="100" x:Name="Sub" Visibility="Collapsed">
            <Subattle:Submarine.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="-1"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Subattle:Submarine.RenderTransform>
        </Subattle:Submarine>
        <MediaElement Source="ambient2.mp3" AutoPlay="True"  x:Name="soundAmbient" Volume="0.2" MediaEnded="soundAmbient_MediaEnded" />
        <MediaElement Source="ping.mp3" AutoPlay="False" x:Name="soundPing" Volume="0.3" />
        <MediaElement Source="response.mp3" AutoPlay="False" x:Name="soundResponse" Volume="0.6" />
        <MediaElement Source="torpedo.mp3" AutoPlay="False" x:Name="soundTorpedo" Volume=".5" />
        <MediaElement Source="distantExplosion.mp3" AutoPlay="False" x:Name="soundDistantExplosion" Volume="1" />
        <MediaElement Source="explosion.mp3" AutoPlay="False" x:Name="soundExplosion" Volume="1" />
        <Border Height="15.334" Width="475" Canvas.Left="6.998" Canvas.Top="8" BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="10,0,10,0" Visibility="Visible" x:Name="EnemyHealth" RenderTransformOrigin="0.5,0.5" Opacity="0">
        	<Border.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="-1"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Border.RenderTransform>
        	<Border.Background>
        		<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
        			<GradientStop Color="#22000000" Offset="0"/>
        			<GradientStop Color="#22000000" Offset="1" x:Name="EnemyHealthMax" />
        			<GradientStop Color="#FFFF0000" Offset="0"/>
        			<GradientStop Color="#FFFFFF00" Offset="0.991" x:Name="EnemyHealthAlmostMax"/>
        		</LinearGradientBrush>
        	</Border.Background>
        </Border>
        <Border Height="15.334" Width="475" BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="10,0,10,0" Visibility="Visible" x:Name="SubHealth" RenderTransformOrigin="0.5,0.5" Canvas.Left="8" Canvas.Top="460" Opacity="0">
        	<Border.Background>
        		<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
        			<GradientStop Color="#22000000" Offset="0"/>
        			<GradientStop Color="#22000000" Offset="1" x:Name="SubHealthMax" />
        			<GradientStop Color="#FFFF0000" Offset="0"/>
        			<GradientStop Color="#FFFFFF00" Offset="0.991" x:Name="SubHealthAlmostMax"/>
        		</LinearGradientBrush>
        	</Border.Background>
            <Border.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="-1"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Border.RenderTransform>
        </Border>
        <Canvas Height="445.28" Width="424" Canvas.Left="51" Canvas.Top="29.72" HorizontalAlignment="Stretch" RenderTransformOrigin="0.5,0.5" x:Name="Menu">
        	<Canvas.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1" ScaleY="1"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Canvas.RenderTransform>
        	<Path Data="M-78.333336,669 L-202.66667,669.33331 C-202.66667,669.33331 -201.99966,660.65887 -205.66631,661.32617 C-209.33295,661.99347 -209.99925,664.99609 -209.66592,670.00098 C-209.3326,675.0058 -246.99834,667.66541 -246.99834,707.0368 C-246.99834,746.4082 -210.33211,742.07068 -203.33218,744.73993 C-196.33226,747.40918 160.99684,744.73993 160.99684,744.73993 C160.99684,744.73993 236.3293,737.73303 250.32913,728.39069 C257.32935,737.06567 257.66269,738.73395 259.996,739.40131 C262.32932,740.0686 269.99588,739.40131 271.66254,738.06665 C273.32919,736.73206 266.66226,724.05316 266.66226,724.05316 L288.99579,714.71082 C288.99579,714.71082 289.66245,707.37036 288.32913,706.03577 C286.99582,704.70117 269.9957,698.69537 269.9957,698.69537 L275.99561,689.68665 L263.3291,688.68567 L254.99586,694.02417 L250.32925,692.3559 L245.3293,683.68085 L235.66275,684.34814 L235.99608,688.68567 C235.99608,688.68567 201.32982,670.33466 176.66344,669.66736 C151.99706,669.00006 16.331955,669.66736 16.331955,669.66736" Stretch="Fill" Height="60.653" Width="382.318" RenderTransformOrigin="0.5,0.5" Canvas.Left="7" Canvas.Top="36.692">
        		<Path.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="0.99999999999999989" ScaleY="1"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Path.RenderTransform>
        		<Path.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FF040404" Offset="0.674"/>
        				<GradientStop Color="#FF3A3945" Offset="0"/>
        			</LinearGradientBrush>
        		</Path.Fill>
        	</Path>
        	<Path Height="37.009" Data="M95.166374,51.499943 L94.833038,7.8333025 C94.833038,7.8333025 101.83304,9.5003309 107.83304,4.8333344 C113.83304,0.16633824 55.388599,1.9444652 29.166382,0.5 C21.499718,1.8332446 7.1663895,1.8330007 6.1663857,4.4996729 C1.4997215,8.1663542 0.5,50.833229 0.5,50.833229" Stretch="Fill" Width="77.406" RenderTransformOrigin="0.5,1" x:Name="tower" Canvas.Left="127.17" Canvas.Top="6">
        		<Path.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleY="1" ScaleX="0.99999999999999989"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Path.RenderTransform>
        		<Path.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FF060505" Offset="0.576"/>
        				<GradientStop Color="#FF16181A" Offset="0"/>
        			</LinearGradientBrush>
        		</Path.Fill>
        	</Path>
        	<TextBlock Height="165" Width="460" RenderTransformOrigin="0.5,0.5" FontFamily="Trebuchet MS" FontSize="40" Text="Atomic Subattle" TextAlignment="Center" TextWrapping="Wrap" Canvas.Top="47.009" Canvas.Left="-47" Foreground="{StaticResource Brush1}">
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="1.1"/>
        				<SkewTransform/>
        				<RotateTransform Angle="0"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        	<TextBlock Height="21.833" Width="235" Canvas.Left="8" Canvas.Top="114.303" Text="Styrtøj:" TextWrapping="Wrap" Foreground="#FFFFFFFF" FontSize="14" TextDecorations="Underline"/>
        	<Path Data="M0.85922778,0.73656559 L0.796875,4.40625 L2.3862598,4.40625 L2.8688583,3.5939724 C2.8688583,3.5939724 11.729461,4.2260413 14.128743,4.1010375 C14.537876,3.2273152 14.527446,2.2569098 14.050597,1.1790636 C12.773277,1.0703782 2.977948,1.5320408 2.977948,1.5320408 L2.3547487,0.73494077 z" Stretch="Fill" Stroke="#FF000000" Fill="#FF1A1919" Height="7.391" Width="23.196" RenderTransformOrigin="0.5,0.5" Canvas.Left="334.766" Canvas.Top="166.843">
        		<Path.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleY="-1"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Path.RenderTransform>
        	</Path>
        	<TextBlock Height="31" Width="308.5" Canvas.Left="18" Canvas.Top="136.568" Text="         på skærmen for at sætte en kurs" TextWrapping="Wrap" Foreground="#FFFFFFFF" FontSize="14"/>
        	<TextBlock Height="31" Width="308.5" Text="Brug                       til at affyre Torpedoer" TextWrapping="Wrap" Canvas.Left="18" Canvas.Top="158.932" Foreground="#FFFFFFFF" FontSize="14"/>
        	<TextBlock Height="24.5" Width="97" RenderTransformOrigin="0.5,0.5" FontFamily="Trebuchet MS" FontSize="16" Text="MELLEMRUM" TextAlignment="Center" TextWrapping="Wrap" Canvas.Top="159.182" Canvas.Left="57.666" FontWeight="Bold">
        		<TextBlock.Foreground>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FFF5FF00"/>
        				<GradientStop Color="#FFFF0000" Offset="1"/>
        			</LinearGradientBrush>
        		</TextBlock.Foreground>
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="0"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        	<TextBlock Height="97.333" Width="377" Text="Venter på den anden landkrabbe..." TextWrapping="Wrap" Canvas.Top="238.802" Canvas.Left="13.666" HorizontalAlignment="Stretch" TextAlignment="Center" FontWeight="Bold" FontSize="18" x:Name="StatusText" FontStyle="Normal" RenderTransformOrigin="0.5,0.5">
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        		<TextBlock.Foreground>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FFF5FF00"/>
        				<GradientStop Color="#FFFF0000" Offset="1"/>
        			</LinearGradientBrush>
        		</TextBlock.Foreground>
        	</TextBlock>
        	<TextBlock Height="31" Width="308.5" Text="Tryk    for spille i fuld skærm" TextWrapping="Wrap" Foreground="#FFFFFFFF" Canvas.Left="18" Canvas.Top="181.884" FontSize="14"/>
        	<TextBlock Height="24.5" Width="83" RenderTransformOrigin="0.5,0.5" FontFamily="Trebuchet MS" FontSize="16" Text="F" TextAlignment="Center" TextWrapping="Wrap" FontWeight="Bold" Canvas.Left="18.25" Canvas.Top="182.634">
        		<TextBlock.Foreground>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FFF5FF00"/>
        				<GradientStop Color="#FFFF0000" Offset="1"/>
        			</LinearGradientBrush>
        		</TextBlock.Foreground>
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="0"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        	<TextBlock Text="Lavet af Jacob Korsgaard @ felizk.dk" TextWrapping="Wrap" Canvas.Top="429" Canvas.Left="211.748"  FontSize="11" FontWeight="Normal" Foreground="#FFFFFFFF"/>
        	<TextBlock Height="18.578" Width="46.594" RenderTransformOrigin="0.5,0.5" FontFamily="Trebuchet MS" FontSize="16" Text="TRYK" TextAlignment="Center" TextWrapping="Wrap" FontWeight="Bold" Canvas.Left="13.666" Canvas.Top="137.182">
        		<TextBlock.Foreground>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FFF5FF00"/>
        				<GradientStop Color="#FFFF0000" Offset="1"/>
        			</LinearGradientBrush>
        		</TextBlock.Foreground>
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="0"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        	<TextBlock Height="27.333" Width="369.89" Text="Min søster fører med 4-1 :(" TextWrapping="Wrap" TextAlignment="Center" FontWeight="Bold" FontSize="18" x:Name="Score" FontStyle="Normal" RenderTransformOrigin="0.5,0.5" Canvas.Top="357.802" Canvas.Left="8" Visibility="Collapsed">
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        		<TextBlock.Foreground>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FFF5FF00" Offset="0"/>
        				<GradientStop Color="#FFFF0000" Offset="1"/>
        				<GradientStop Color="#FFF99800" Offset="0.777"/>
        			</LinearGradientBrush>
        		</TextBlock.Foreground>
        	</TextBlock>
        </Canvas>
        <Subattle:Explosion Height="150" Width="150" Canvas.Left="75" Canvas.Top="238" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed" x:Name="explosionAnim">
        	<Subattle:Explosion.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.5" ScaleY="0.5"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Subattle:Explosion.RenderTransform>
        </Subattle:Explosion>
    </Canvas>
</UserControl>
